const logLevels = {
    INFO: 'INFO',
    WARN: 'WARN',
    ERROR: 'ERROR',
};

function log(level, message) {
    const timestamp = new Date().toISOString();
    console.log(`[${timestamp}] [${level}] ${message}`);
}

function info(message) {
    log(logLevels.INFO, message);
}

function warn(message) {
    log(logLevels.WARN, message);
}

function error(message) {
    log(logLevels.ERROR, message);
}

module.exports = {
    info,
    warn,
    error,
};